package com.yuw.collectiontool;

public class Teacher {
    // 属性
    private String teaName;
    private String teaNum;
    private int teaScore;

    // 行为

    public Teacher(String teaName, String teaNum, int teaScore) {
        this.teaName = teaName;
        this.teaNum = teaNum;
        this.teaScore = teaScore;
    }

    public String getTeaName() {
        return teaName;
    }

    public void setTeaName(String teaName) {
        this.teaName = teaName;
    }

    public String getTeaNum() {
        return teaNum;
    }

    public void setTeaNum(String teaNum) {
        this.teaNum = teaNum;
    }

    public int getTeaScore() {
        return teaScore;
    }

    public void setTeaScore(int teaScore) {
        this.teaScore = teaScore;
    }

    /**
     * 打印学生信息
     */
    public void printMe() {
        System.out.println(this.toString());
    }

    @Override
    public String toString() {
        return "Teacher{" +
                "teaName='" + teaName + '\'' +
                ", teaNum='" + teaNum + '\'' +
                ", teaScore=" + teaScore +
                '}';
    }
}
